$(() => {
    $.ajax({
        type: 'get',
        url: 'http://localhost:3000/api/getinlanddiscount',
        dataType: 'json', //text,json,xml,jsonp
        success(res) {
            console.log(res)
            $('#recommen-product  .inland-discount-list ul').html(template("discountTpl", res));
        }
    })
})